STEP 7: Let's create a function for our battle scene!

  • Go to . Drag Define Function to the bottom of your program.
  • Change the function name to battle_scene.
  • Go to and drop the Dragon into your scene indented INSIDE your function.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)